package com.qinker.oa.params;

import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserParams implements Serializable {

    @NotNull(message = "用户名不能为空")
    private String username;

    @NotNull
    @Length(min = 3, max = 10, message = "密码长度在3和10之间")
    private String password;
}
